//
//  FaceVerifiViewController.m
//  WBBaseProject
//
//  Created by 吴斌 on 2018/4/12.
//  Copyright © 2018年 吴斌. All rights reserved.
//

#import "FaceVerifiViewController.h"

@interface FaceVerifiViewController ()

@end

@implementation FaceVerifiViewController

#pragma mark - 生命周期 Life Circle
- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title = @"人脸验证";
    [self setUpUI];
}

- (void)setUpUI
{
    UIScrollView *scrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 0, kScreenWidth, kScreenHeight)];
    scrollView.contentSize = CGSizeMake(kScreenWidth, kScreenHeight + 1);
    scrollView.backgroundColor = WB_RGBColor(240, 240, 240);
    [self.view addSubview:scrollView];
    
    //提示
    UILabel *titleLb = [[UILabel alloc] initWithFrame:CGRectMake(0, 60, kScreenWidth, 20)];
    titleLb.text = @"为了您的账户安全，请进行人脸验证";
    titleLb.textAlignment = NSTextAlignmentCenter;
    titleLb.font = [UIFont systemFontOfSize:18];
    titleLb.textColor = WB_HEX_COLOR(0x333333);
    [scrollView addSubview:titleLb];
    
    //提示
    UILabel *tipLb = [[UILabel alloc] initWithFrame:CGRectMake(0, titleLb.mm_bottom + 15, kScreenWidth, 40)];
    tipLb.text = @"“人脸识别”时请在柔和的光线下，\n并保持正脸对准屏幕";
    tipLb.textAlignment = NSTextAlignmentCenter;
    tipLb.font = [UIFont systemFontOfSize:12];
    tipLb.numberOfLines = 0;
    tipLb.textColor = WB_HEX_COLOR(0xbbbbbb);
    [scrollView addSubview:tipLb];
    
    //图片
    UIImageView *headIV = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 164, 200)];
    headIV.center = CGPointMake(kScreenWidth / 2, tipLb.mm_bottom + 30 + 100);
    headIV.image = [UIImage imageNamed:@"renlian"];
    [scrollView addSubview:headIV];

    //确定
    UIButton *sureBtn = [Factory customButtonWithTitle:@"开始验证"];
    sureBtn.tag = 1000;
    sureBtn.frame = CGRectMake(60, headIV.mm_bottom + 60, kScreenWidth - 120, 60);
    [sureBtn addTarget:self action:@selector(clickMethod:) forControlEvents:UIControlEventTouchUpInside];
    [scrollView addSubview:sureBtn];
    
}

- (void)clickMethod:(UIButton *)sender
{
   
}


@end
